var app = getApp()
Page({

  data: {
    time: '',
    name: '',
    phone: '',
    wx: ''
  },
  onLoad: function(options) {
    wx.showLoading({
      title: '请稍候',
    })
    this.data.successInfo = JSON.parse(options.successInfo);

    var s = this.data.successInfo;
  
    this.setData({
      time: s.bespeak_time,
      name: s.name,
      phone: s.phone,
      wx: s.wx,
    })
  },
  q: function () {
    wx.navigateBack({ changed: true })
  },
  qq: function () {
    wx.switchTab({

      url: '/pages/index/index',

    });
  },
  onReady: function () {
    const vm = this
    vm.setData({
      statusBarHeight: getApp().globalData.statusBarHeight,
      titleBarHeight: getApp().globalData.titleBarHeight
    })
    wx.hideLoading()
  },
  onShow: function() {

  },
  toIndex: function () {
    wx.navigateBack({
      delta: 9
    })
  },
 
})